CROSS_COMPILE =/opt/imx287/tools/gcc/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi-

CC = arm-linux-gcc

all: can_read can_write

tcprecv: can_read.c
	$(CROSS_COMPILE)$(CC) -lpthread -o can_read can_read.c

tcpsend: can_write.c
	$(CROSS_COMPILE)$(CC) -lpthread -o can_write can_write.c

clean:
	rm -rf can_read can_write
